package com.mpsc.lcn.consumer.webService;

import com.mpsc.api.bean.RoleInfoEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "lcn-provide")
public interface LcnRoleInfoService {

    @PostMapping("/lcn-provide/roleInfo/save")
    void save(RoleInfoEntity role);

    @GetMapping("/lcn-provide/roleInfo/find/role-by-id")
    void findRoleById(@RequestParam("id") Long id);

    @GetMapping("/lcn-provide/roleInfo/find/role")
    void findRole();
}
